Platform Explorer / Nuxeo Platform 2023.9

Contribution org.nuxeo.ecm.platform.templates.convert.plugins--converter

This contribution is part of XML component org.nuxeo.ecm.platform.templates.convert.plugins inside nuxeo-template-rendering-core-2023.9.10.jar /OSGI-INF/convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Registration Order

9
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2odt">
          <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>
    
          <sourceMimeType>text/x-web-markdown</sourceMimeType>
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
    
          <parameters>
            <parameter name="CommandLineName">soffice</parameter>
            <parameter name="format">odt</parameter>
          </parameters>
       </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2docx">
    
          <destinationMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</destinationMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
    
          <parameters>
            <parameter name="CommandLineName">soffice</parameter>
            <parameter name="format">docx</parameter>
          </parameters>
       </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2doc">
    
          <destinationMimeType>application/msword</destinationMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
    
          <parameters>
            <parameter name="CommandLineName">soffice</parameter>
            <parameter name="format">doc</parameter>
          </parameters>
       </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">

   <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2odt">
      <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>

      <sourceMimeType>text/x-web-markdown</sourceMimeType>
      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>

      <parameters>
        <parameter name="CommandLineName">soffice</parameter>
        <parameter name="format">odt</parameter>
      </parameters>
   </converter>

   <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2docx">

      <destinationMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</destinationMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>

      <parameters>
        <parameter name="CommandLineName">soffice</parameter>
        <parameter name="format">docx</parameter>
      </parameters>
   </converter>

   <converter class="org.nuxeo.ecm.platform.convert.plugins.LibreOfficeConverter" name="any2doc">

      <destinationMimeType>application/msword</destinationMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>

      <parameters>
        <parameter name="CommandLineName">soffice</parameter>
        <parameter name="format">doc</parameter>
      </parameters>
   </converter>

  </extension>